#include "entitymanager.hpp"

void EntityManager::AddEntity(Entity *entity)
{
    entityList.push_back(entity);
}

void EntityManager::Update()
{
    for (unsigned int i = 0; i < entityList.size(); i++)
    {
        (entityList.at(i))->Update();
    }
}

Entity* EntityManager::GetEntity(unsigned int id)
{
    return entityList.at(id);
}
